/*
 * @Description: 
 * @Author: Liu Kunpeng
 * @Date: 2021-07-05 20:41:06
 * @LastEditors: Liu Kunpeng
 * @LastEditTime: 2021-07-19 20:05:46

 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/vue-admin-template/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
